<script src='__JS__/blooming-menu.min.js'></script>
<script>
	$(function(){

	    var bloomingMenu = new BloomingMenu({
	      startAngle: -90,
	      endAngle: 0,
	      radius: 100,
	      itemsNum: 4,
	      itemAnimationDelay: 0.08
	    })
	    bloomingMenu.render();

		bloomingMenu.props.elements.items.forEach(function (item, index) {
		  item.addEventListener('click', function () {
		    // window.location.href="http://m.baidu.com";
		    //console.log('Item #' + index + 'was clicked')
		    	console.log(index);
		    	switch(index) {
		    		case 0:
		    			window.location.href="{:U('Index/index')}";
		    			break;
		    		case 1:
		    			window.location.href="{:U('Index/search')}";
		    			break;
		    		case 2:
		    			window.location.href="{:U('Article/index')}?id=9";
		    			break;
		    		case 3:
		    			window.location.href="{:U('Article/index')}?id=10";
		    			break;
		    	}
		  })
		});

		$(".blooming-menu__container .blooming-menu__item-btn-wrapper .blooming-menu__item-btn:eq(0)").html('首页');
		$(".blooming-menu__container .blooming-menu__item-btn-wrapper .blooming-menu__item-btn:eq(1)").html('搜索');
		$(".blooming-menu__container .blooming-menu__item-btn-wrapper .blooming-menu__item-btn:eq(2)").html('捐款方式');
		$(".blooming-menu__container .blooming-menu__item-btn-wrapper .blooming-menu__item-btn:eq(3)").html('春祭简介');
	});
</script>